package gov.pbc.nn.kjgl.menu;

import gov.pbc.nn.core.bdf.AbstractMenuGenerator;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Component;

import com.bstek.bdf2.core.model.Url;

@Component
public class KjglMenuGenerator extends AbstractMenuGenerator {

	@Override
	public List<Url> getUrls(String rootId) {
		List<Url> urls = new ArrayList<Url>();
		Url secondUrl = this.createUrl("业务", "url(>skin>common/icons.gif) -280px -20px", null, 1, null);
		urls.add(secondUrl);
		rootId = secondUrl.getId();
		
		Url 科技人员管理 = this.createUrl("科技人员管理", "url(>skin>common/icons.gif) -40px -40px", rootId, 1, null);
		urls.add(科技人员管理);
		Url kejirenyuanweihu = this.createUrl("科技人员", "url(>skin>common/icons.gif) -260px -100px", 科技人员管理.getId(), 1, "gov.pbc.nn.kjgl.tech.view.Technician.d");
		urls.add(kejirenyuanweihu);
		Url myurl = this.createUrl("我的科技信息", "url(>skin>common/icons.gif) -260px -100px", 科技人员管理.getId(), 2, "gov.pbc.nn.kjgl.tech.view.MyTechnician.d");
		urls.add(myurl);
		
		Url 档案管理 = this.createUrl("档案管理", "url(>skin>common/icons.gif) -40px -40px", rootId, 2, null);
		Url yijidanganweihu = this.createUrl("一级档案维护", "url(>skin>common/icons.gif) -260px -100px", 档案管理.getId(), 1, "gov.pbc.nn.kjgl.archive.view.Archives.d");
		Url erjidanganweihu = this.createUrl("二级档案维护", "url(>skin>common/icons.gif) -260px -100px", 档案管理.getId(), 2, "gov.pbc.nn.kjgl.archive.view.ArchivesTwo.d");
		Url danganneirongluru = this.createUrl("档案内容录入", "url(>skin>common/icons.gif) -260px -100px", 档案管理.getId(), 3, "gov.pbc.nn.kjgl.archive.view.ArchiveInput.d");
		Url danganchaxun = this.createUrl("档案查询", "url(>skin>common/icons.gif) -260px -100px", 档案管理.getId(), 4, "gov.pbc.nn.kjgl.archive.view.ArchivesQuery.d");
		urls.add(档案管理);
		urls.add(yijidanganweihu);
		urls.add(erjidanganweihu);
		urls.add(danganneirongluru);
		urls.add(danganchaxun);

		Url 软件项目管理 = this.createUrl("软件项目管理", "url(>skin>common/icons.gif) -40px -40px", rootId, 3, null);
		String parentId = 软件项目管理.getId();
		Url shenbaoshijianweih = this.createUrl("集中立项申报时间维护", "url(>skin>common/icons.gif) -260px -100px", parentId, 1, "gov.pbc.nn.kjgl.software.view.DeclareTime.d");
		Url lixiangshenqing = this.createUrl("立项申请", "url(>skin>common/icons.gif) -260px -100px", parentId, 2, "gov.pbc.nn.kjgl.software.view.Project.d");
		Url xiangmubaobei = this.createUrl("项目报备", "url(>skin>common/icons.gif) -260px -100px", parentId, 3, "gov.pbc.nn.kjgl.software.view.ProjectBackup.d");
		Url xiangmuzuguanli = this.createUrl("项目组维护", "url(>skin>common/icons.gif) -260px -100px", parentId, 4, "gov.pbc.nn.kjgl.software.view.ProjectMange.d");
		Url wentiguanli = this.createUrl("问题管理", "url(>skin>common/icons.gif) -260px -100px", parentId, 5, "gov.pbc.nn.kjgl.software.view.ProjectProblem.d");
		Url wodewenti = this.createUrl("我的问题", "url(>skin>common/icons.gif) -260px -100px", parentId, 6, "gov.pbc.nn.kjgl.software.view.MyProjectProblem.d");
		Url renwuguanli = this.createUrl("任务管理", "url(>skin>common/icons.gif) -260px -100px", parentId, 7, "gov.pbc.nn.kjgl.software.view.ProjectTask.d");
		Url woderenwu = this.createUrl("我的任务", "url(>skin>common/icons.gif) -260px -100px", parentId, 8, "gov.pbc.nn.kjgl.software.view.MyProjectTask.d");
		Url rjxmbg = this.createUrl("项目变更", "url(>skin>common/icons.gif) -260px -100px", parentId, 9, "gov.pbc.nn.kjgl.software.view.ChangeProject.d");
		urls.add(软件项目管理);
		urls.add(shenbaoshijianweih);
		urls.add(lixiangshenqing);
		urls.add(xiangmubaobei);
		urls.add(xiangmuzuguanli);
		urls.add(wentiguanli);
		urls.add(wodewenti);
		urls.add(renwuguanli);
		urls.add(woderenwu);
		urls.add(rjxmbg);

		Url 机房进入 = this.createUrl("机房进入", "url(>skin>common/icons.gif) -40px -40px", rootId, 4, null);
		Url jinruleibieweihu = this.createUrl("进入类别维护", "url(>skin>common/icons.gif) -260px -100px", 机房进入.getId(), 1, "gov.pbc.nn.kjgl.jfcr.view.ComputerRoomEntryType.d");
		Url jifangxinxiweihu = this.createUrl("机房信息维护", "url(>skin>common/icons.gif) -260px -100px", 机房进入.getId(), 2, "gov.pbc.nn.kjgl.jfcr.view.ComputerRoom.d");
		Url shenqingjinru = this.createUrl("申请进入", "url(>skin>common/icons.gif) -260px -100px", 机房进入.getId(), 3, "gov.pbc.nn.kjgl.jfcr.view.ApplyEntry.d");
		Url jinruchaxun = this.createUrl("进入查询", "url(>skin>common/icons.gif) -260px -100px", 机房进入.getId(), 4, "gov.pbc.nn.kjgl.jfcr.view.SearchApplyEntry.d");
		urls.add(机房进入);
		urls.add(jinruleibieweihu);
		urls.add(jifangxinxiweihu);
		urls.add(shenqingjinru);
		urls.add(jinruchaxun);

		Url 会议管理 = this.createUrl("会议管理", "url(>skin>common/icons.gif) -40px -40px", rootId, 5, null);
		Url huiyijihuaguanli = this.createUrl("会议计划", "url(>skin>common/icons.gif) -260px -100px", 会议管理.getId(), 1, "gov.pbc.nn.kjgl.meetings.view.Meeting.d");
		Url daishenhehuiyijihua = this.createUrl("待审核计划", "url(>skin>common/icons.gif) -260px -100px", 会议管理.getId(), 2, "gov.pbc.nn.kjgl.meetings.view.MeetingOpinion.d");
		Url huiyicanbao = this.createUrl("会议参报", "url(>skin>common/icons.gif) -260px -100px", 会议管理.getId(), 3, "gov.pbc.nn.kjgl.meetings.view.MeetingUser.d");
		Url huiyichaxun = this.createUrl("会议查询", "url(>skin>common/icons.gif) -260px -100px", 会议管理.getId(), 4, "gov.pbc.nn.kjgl.meetings.view.MeetingSelectAll.d");
		urls.add(会议管理);
		urls.add(huiyijihuaguanli);
		urls.add(daishenhehuiyijihua);
		urls.add(huiyicanbao);
		urls.add(huiyichaxun);

		Url 培训管理 = this.createUrl("培训管理", "url(>skin>common/icons.gif) -40px -40px", rootId, 6, null);
		Url peixunjihuaguanli = this.createUrl("培训计划", "url(>skin>common/icons.gif) -260px -100px", 培训管理.getId(), 1, "gov.pbc.nn.kjgl.train.view.TrainingPlan.d");
		Url daishenhepeixunjihua = this.createUrl("待审核计划", "url(>skin>common/icons.gif) -260px -100px", 培训管理.getId(), 2, "gov.pbc.nn.kjgl.train.view.TrainPlanSH.d");
		Url peixuncanbao = this.createUrl("培训参报", "url(>skin>common/icons.gif) -260px -100px", 培训管理.getId(), 3, "gov.pbc.nn.kjgl.train.view.TrainRegister.d");
		Url peixunchaxun = this.createUrl("培训查询", "url(>skin>common/icons.gif) -260px -100px", 培训管理.getId(), 4, "gov.pbc.nn.kjgl.train.view.QueryTrainPlan.d");
		urls.add(培训管理);
		urls.add(peixunjihuaguanli);
		urls.add(daishenhepeixunjihua);
		urls.add(peixuncanbao);
		urls.add(peixunchaxun);

		Url 工作计划 = this.createUrl("工作计划管理", "url(>skin>common/icons.gif) -40px -40px", rootId, 7, null);
		Url gongzuojihualuru = this.createUrl("工作计划", "url(>skin>common/icons.gif) -260px -100px", 工作计划.getId(), 1, "gov.pbc.nn.kjgl.gzjh.view.WorkPlanZh.d");
		Url shenhe = this.createUrl("科长计划", "url(>skin>common/icons.gif) -260px -100px", 工作计划.getId(), 2, "gov.pbc.nn.kjgl.gzjh.view.WorkPlanKz.d");
		Url fuzedejihua = this.createUrl("处理人计划", "url(>skin>common/icons.gif) -260px -100px", 工作计划.getId(), 3, "gov.pbc.nn.kjgl.gzjh.view.WorkPlanUser.d");
		urls.add(工作计划);
		urls.add(gongzuojihualuru);
		urls.add(fuzedejihua);
		urls.add(shenhe);

		Url url = this.createUrl("任务管理", "url(>skin>common/icons.gif) -40px -40px", rootId, 8, null);
		urls.add(url);
		Url childUrl = this.createUrl("任务分办-南宁中支", "url(>skin>common/icons.gif) -260px -100px", url.getId(), 1, "gov.pbc.nn.kjgl.task.view.Tasks.d");
		urls.add(childUrl);
		childUrl = this.createUrl("任务分办-地市中支", "url(>skin>common/icons.gif) -260px -100px", url.getId(), 2, "gov.pbc.nn.kjgl.task.view.TasksZZ.d");
		urls.add(childUrl);
		
		url = this.createUrl("事项管理", "url(>skin>common/icons.gif) -40px -40px", rootId, 9, null);
		urls.add(url);
		childUrl = this.createUrl("事项分类", "url(>skin>common/icons.gif) -260px -100px", url.getId(), 1, "gov.pbc.nn.kjgl.item.template.view.ItemType.d");
		urls.add(childUrl);
		childUrl = this.createUrl("事项审批", "url(>skin>common/icons.gif) -260px -100px", url.getId(), 2, "gov.pbc.nn.kjgl.item.template.view.ItemApproval.d");
		urls.add(childUrl);
//		childUrl = this.createUrl("已完成事项审批", "url(>skin>common/icons.gif) -260px -100px", url.getId(), 3, "gov.pbc.nn.kjgl.item.template.view.ItemApprovalOfOver.d");
//		urls.add(childUrl);
		
		
		url = this.createUrl("运维管理", "url(>skin>common/icons.gif) -40px -40px", rootId, 10, null);
		urls.add(url);
		childUrl = this.createUrl("系统档案", "url(>skin>common/icons.gif) -260px -100px", url.getId(), 1, "gov.pbc.nn.kjgl.maintenance.view.SysMaintain.d");
		urls.add(childUrl);
		childUrl = this.createUrl("系统管理", "url(>skin>common/icons.gif) -260px -100px", url.getId(), 2, "gov.pbc.nn.kjgl.maintenance.view.SysManage.d");
		urls.add(childUrl);
		childUrl = this.createUrl("系统巡检", "url(>skin>common/icons.gif) -260px -100px", url.getId(), 3, "gov.pbc.nn.kjgl.maintenance.view.SysInspection.d");
		urls.add(childUrl);
		childUrl = this.createUrl("事件管理", "url(>skin>common/icons.gif) -260px -100px", url.getId(), 4, "gov.pbc.nn.kjgl.maintenance.view.SysEvent.d");
		urls.add(childUrl);
		childUrl = this.createUrl("问题管理", "url(>skin>common/icons.gif) -260px -100px", url.getId(), 5, "gov.pbc.nn.kjgl.maintenance.view.SysProblem.d");
		urls.add(childUrl);
		childUrl = this.createUrl("密码管理", "url(>skin>common/icons.gif) -260px -100px", url.getId(), 6, "gov.pbc.nn.kjgl.maintenance.view.SysPwdManager.d");
		urls.add(childUrl);
		childUrl = this.createUrl("系统变更", "url(>skin>common/icons.gif) -260px -100px", url.getId(), 7, "gov.pbc.nn.kjgl.maintenance.view.SysChange1.d");
		urls.add(childUrl);
//		childUrl = this.createUrl("系统变更--业务", "url(>skin>common/icons.gif) -260px -100px", url.getId(), 8, "gov.pbc.nn.kjgl.maintenance.view.SysChange2.d");
//		urls.add(childUrl);
		childUrl = this.createUrl("执行变更", "url(>skin>common/icons.gif) -260px -100px", url.getId(), 9, "gov.pbc.nn.kjgl.maintenance.view.SysChangeContent.d");
		urls.add(childUrl);
		childUrl = this.createUrl("应急计划", "url(>skin>common/icons.gif) -260px -100px", url.getId(), 10, "gov.pbc.nn.kjgl.maintenance.view.SysEmergencyPlan.d");
		urls.add(childUrl);
		childUrl = this.createUrl("应急预案", "url(>skin>common/icons.gif) -260px -100px", url.getId(), 11, "gov.pbc.nn.kjgl.maintenance.view.SysEmergencyScheme.d");
		urls.add(childUrl);
		childUrl = this.createUrl("应急演练", "url(>skin>common/icons.gif) -260px -100px", url.getId(), 12, "gov.pbc.nn.kjgl.maintenance.view.SysEmergencyRehearsal.d");
		urls.add(childUrl);
		childUrl = this.createUrl("业务人员", "url(>skin>common/icons.gif) -260px -100px", url.getId(), 13, "gov.pbc.nn.kjgl.maintenance.view.SysCleckManage.d");
		urls.add(childUrl);
		
		url = this.createUrl("新开业银行", "url(>skin>common/icons.gif) -40px -40px", rootId, 10, null);
		urls.add(url);
		childUrl = this.createUrl("开业辅导", "url(>skin>common/icons.gif) -260px -100px", url.getId(), 1, "gov.pbc.nn.kjgl.xkyyh.view.NewBanks.d");
		urls.add(childUrl);
		childUrl = this.createUrl("开业辅导完成情况", "url(>skin>common/icons.gif) -260px -100px", url.getId(), 2, "gov.pbc.nn.kjgl.xkyyh.view.TrainDepts.d");
		urls.add(childUrl);
		childUrl = this.createUrl("加入金融服务与管理系统", "url(>skin>common/icons.gif) -260px -100px", url.getId(), 3, "gov.pbc.nn.kjgl.joinjrfwygl.view.JoinJrfwygl.d");
		urls.add(childUrl);
		childUrl = this.createUrl("加入金融服务与管理系统完成情况", "url(>skin>common/icons.gif) -260px -100px", url.getId(), 4, "gov.pbc.nn.kjgl.joinjrfwygl.view.HandleDepts.d");
		urls.add(childUrl);
		
		url = this.createUrl("因私出国（境）审批", "url(>skin>common/icons.gif) -40px -40px", rootId, 11, null);
		urls.add(url);
		childUrl = this.createUrl("申请列表", "url(>skin>common/icons.gif) -260px -100px", url.getId(), 1, "gov.pbc.nn.kjgl.AbroadApproval.view.A2Tasks.d");
		urls.add(childUrl);
		childUrl = this.createUrl("管理员维护", "url(>skin>common/icons.gif) -260px -100px", url.getId(), 2, "gov.pbc.nn.kjgl.AbroadApproval.view.A2TasksModify.d");
		urls.add(childUrl);
		
		return urls;
	}

}
